package command;

/**
 * @Author: 582895699@qq.com
 * @Desctription: 命令行模式
 * @Date: Created in 2021/12/26 23:09
 */
public class Invoker {

    private Command command;


    public void setCommand(Command command) {
        this.command = command;
    }

    public void action() {
        this.command.execute();
    }
}
